<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "sign_distance_log".
 *
 * @property integer $id
 * @property string $orderno
 * @property integer $user_id
 * @property string $username
 * @property string $phone
 * @property string $opt_time
 */
class SignDistanceLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'sign_distance_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id'], 'integer'],
            [['opt_time'], 'safe'],
            [['orderno'], 'string', 'max' => 20],
            [['username'], 'string', 'max' => 50],
            [['phone'], 'string', 'max' => 11],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'orderno' => '订单号',
            'user_id' => '操作者ID',
            'username' => '操作者用户名',
            'phone' => '操作者手机号',
            'opt_time' => '操作时间',
        ];
    }
}
